// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import axios from 'axios'
import Vuex from 'vuex'

//
// import VueRouter from 'vue-router'
//开启debug模式
Vue.config.debug = true;
axios.defaults.withCredentials=true;
Vue.prototype.$http = axios
Vue.config.productionTip = false
Vue.use(iView)
Vue.use(Vuex)
/* eslint-disable no-new */
//
// const router = new VueRouter({
//   mode: 'history',
//   routes: routers
// })
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
